#include "UnitSprite.h"

UnitSprite::UnitSprite() : m_bActive(true)
{

}

UnitSprite::~UnitSprite()
{

}

CCRect UnitSprite::collideRect()
{
	CCSize size = getContentSize();
	CCPoint position = getPosition();
	float fScale = this->getScale();
	return CCRectMake(position.x - size.width * fScale * 0.5, 
		position.y - size.height * fScale * 0.5, size.width * fScale, size.height * fScale);
}
